package com.black.system.domain.req.system.add;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@ApiModel(value = "岗位添加请求模型")
public class SysPostAddReq {

    @ApiModelProperty(value = "岗位编码", required = true)
    @NotBlank(message = "{syspost.not.postCode}")
    private String postCode;

    @ApiModelProperty(value = "岗位名称", required = true)
    @NotBlank(message = "{syspost.not.postName}")
    private String postName;

    @ApiModelProperty(value = "显示顺序", required = true)
    @NotNull(message = "{syspost.not.postSort}")
    private Integer postSort;

    @ApiModelProperty(value = "状态（0正常 1停用）", required = true)
    @NotBlank(message = "{syspost.not.status}")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remark;
}
